package com.example.common.resp;


import java.util.List;

/**
 * 返回参数,带分页
 */
public class RespJsonPageData<T> extends RespJson {

    /**
     * 返回数据
     */
    private List<T> responseData;

    /**
     * 总记录数
     */
    private long total;


    public RespJsonPageData(List<T> responseData ,long total,String responseCode ,String responseMessage){
        super(responseCode,responseMessage);
        this.responseData = responseData;
        this.total = total;
    }


    public List<T> getResponseData() {
        return responseData;
    }

    public void setResponseData(List<T> responseData) {
        this.responseData = responseData;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
